From f879750759324904d5b1be8d6e084540332a39b2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Mon, 21 Aug 2017 12:12:50 +0200 Subject: [PATCH] container: Fix scrolling adjustment coordinates --- gtk/gtkcontainer.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gtk/gtkcontainer.c b/gtk/gtkcontainer.c index 2c51cdb4dd..9a8154b4af 100644 --- a/gtk/gtkcontainer.c +++ b/gtk/gtkcontainer.c @@ -2059,11 +2059,7 @@ gtk_container_real_set_focus_child (GtkContainer *container, 0, 0, &x, &y)) return; - _gtk_widget_get_allocation (focus_child, &allocation); - x += allocation.x; - y += allocation.y; - - _gtk_widget_get_allocation (child, &allocation); + gtk_widget_get_outer_allocation (child, &allocation); if (vadj) gtk_adjustment_clamp_page (vadj, y, y + allocation.height); -- 2.30.2